Page 95 - 2629_Devagiri_C-4
P. 95
Block Function This block changes the sprite’s position vertically,
change y by 10 moving it up (positive number) or down (negative
These blocks have a notch at the top and flat bottom. They
end a script. Nothing can go under them. For example: the number).
Cap Block stop all block. This block makes the sprite bounce back when it hits
if on edge, bounce
the edge of the screen.
EVENTS BLOCKS point towards mouse-pointer This block makes the sprite point towards a specified
direction (e.g., North) or another sprite.
Events blocks start scripts when something
happens. They make the project interactive by
reacting to actions. Some of the commonly used There are 7 Hat and 2 Stack blocks LOOKS BLOCKS
event blocks with their descriptions are as follows: in the Events Block category.
Looks blocks let you change how your sprite appears. You can use them to make
This block starts the script when the green flag is your sprite talk, switch costumes, adjust its size or add special effects. Some of the
when clicked commonly used Looks blocks and their descriptions are as follows:
clicked. It is often used to begin a project.
This block makes the sprite show a thought bubble
This block starts the script when the backdrop think Hmm...
when backdrop switches to backdrop1 with the given text.
changes to a specified one.
This block changes the sprite’s look by switching it to
switch costume to costume2
the selected costume.
MOTION BLOCKS
This block changes the sprite to its next costume in
next costume
Motion blocks let you control your sprite’s movement. You can use them to make order.
your sprite move, rotate or glide in any direction you choose. Some Motion blocks This block changes the stage background to the one
need values for coordinates and directions. Some of the commonly used Motion switch backdrop to backdrop1 you choose.
blocks and their descriptions are as follows:
This block changes the stage to the next backdrop in
This block instantly moves the sprite to a specified next backdrop
go to random position location, which can be that of another sprite, the order.
mouse pointer or a random location. This block makes the sprite appear on the stage if it
show was previously hidden.
This block instantly moves the sprite to a specific
go to x: 0 y: 0
location (x, y) on the screen.
hide This block makes the sprite disappear from the stage.
This block makes the sprite move smoothly to a
glide 1 secs to x: 0 y: 0
specified location (x, y) over a set number of seconds. Let’s create a project using Events, Motion and Looks blocks.
This block changes the sprite’s position horizontally, To create a project, follow the given steps:
change x by 10 moving it to the right (positive number) or left Step 1 Add Batter sprite.
(negative number).
Scratch Coding Adventures 93

